<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ext4yii xmlns:ext="http://www.w3.org/1999/xhtml" xmlns:prop="http://www.w3.org/1999/xhtml"/>
<prop:RowContextMenu>
    <ext:ContextMenu>
        <prop:MenuItems>
            <ext:MenuItem text="Delete" iconcls="IconCross"/>
        </prop:MenuItems>
        <prop:Actions>
            <ext:ClientAction onevent="itemclick">
                <prop:Handler>
                    <script>
                        /**
                         * Data is the record index provided by the context menu
                         */
                        employeeStore.remove(employeeStore.getAt(this.data));
                    </script>
                </prop:Handler>
            </ext:ClientAction>
        </prop:Actions>
    </ext:ContextMenu>
</prop:RowContextMenu>